package com.gulimall.common.constrant;

import lombok.Getter;

/**
 * @author kkk
 * @date 2022/7/15
 */
public class ProductConstant {
    @Getter
    public enum AttrEnum {
        /**
         * 基本属性
         */
        ATTR_TYPE_BASE(1, "base"),
        /**
         * 销售属性
         */
        ATTR_TYPE_SALE(0, "sale");

        private int code;
        private String msg;

        AttrEnum(int code, String msg) {
            this.code = code;
            this.msg = msg;
        }
    }

    @Getter
    public enum StatusEnum {
        /**
         * 上架
         */
        SPU_UP(1, "上架"),
        /**
         * 下架
         */
        DOWN(0, "下架");

        private int code;
        private String msg;

        StatusEnum(int code, String msg) {
            this.code = code;
            this.msg = msg;
        }
    }
}
